import request from '@/utils/request.js'

//文章列表查询
export const articleListService = (params)=>{
    //携带分页参数
    return request.get('/article/findAll',{params:params})
}

//文章删除
export const deleteArticleService = (id)=>{
    return request.delete('/article',{params:{id:id}});
}

// 文章修改
export const updateArticleService = (params)=>{
    console.log('updateArticleService:',params);
    return request.put('/article',params);
}

// 文章添加
export const addArticleService = (params) =>{
    return request.post('/article',params)
}